<?php

class Multi_field_Core extends Field
{
	public $label;
	public $name = array();

	public function __construct($args)
	{
		$this->name = explode(',', $args);
	}

	public function __call($method, $args)
	{
		$this->$method = $args[0];
		return $this;
	}

	public function put_in_cell($item)
	{
		$string = '';
		foreach ($this->name as $property) {
			$string .= ' '.$item->$property;
		}
		return $string;
	}
}
